package com.edu.hre.common.utils;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class Constants {
	
	public static ThreadPoolExecutor executor = null;
	static {
		BlockingQueue<Runnable> queue = new ArrayBlockingQueue<Runnable>(80, true);
		executor = new ThreadPoolExecutor(3, // core size
				256, // max size
				15, // keep alive time
				TimeUnit.SECONDS, // keep alive time units
				queue // the queue to use
		); 
		executor.allowCoreThreadTimeOut(true);
	}
}
